package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetmealDao {
    public void add(Setmeal setmeal);
    public void setSetmealAndCheckGroup(Map<String, Integer> map);

    public Page<Setmeal> findByCondition(String queryString);

    public List<Setmeal> findAll();

    public Setmeal findById(int id);

    /**
     * 查询关系表  返回个数
     * @param id
     * @return
     */
    public int select_setmeal_id(Integer id);

    /**
     * 删除关联关系
     * @param id
     */
    public void delete_relation(Integer id);

    /**
     * 删除套餐
     * @param id
     */
    public void deleteById(Integer id);

    public List<Map<String, Object>> findSetmealCount();

}
